package org.lyf.org.lyf.gitlab_test.controller;

import org.apache.poi.hssf.usermodel.DVConstraint;
import org.apache.poi.hssf.usermodel.HSSFDataValidation;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.ss.usermodel.*;
import org.apache.poi.ss.util.CellRangeAddressList;
import org.apache.poi.xssf.usermodel.*;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.time.LocalDate;
import java.time.ZoneOffset;
import java.util.*;

/**
 * @program: gitlab_test
 * @description:
 * @author: GG-lyf
 * @create: 2023-08-17 12:25:30
 */
@SuppressWarnings("all")
@RestController
public class Test {
    @GetMapping("time")
    public String test() {
        RestTemplate restTemplate = new RestTemplate();
        //String forObject = restTemplate.getForObject("https://v2.alapi.cn/api/one?token=LwExDtUWhF3rH5ib", String.class);
        String forObject = restTemplate.getForObject("https://api.oick.cn/dutang/api.php", String.class);
        return forObject;
    }
}
